package factory.simplefactory;

/**
 * @auther: Steven
 * @created： 2018/2/9 22:26
 * Description：多方法实现简单工厂，在工厂中，创建多个方法，以便具体对象的实现
 */
public class VehicleSimpleFactoryMultiFunc {
    public static IVehicle newInstanceCar(){
        return new Car();
    }
    public static IVehicle newInstanceCar(String brand){return  new Car(brand);}

    public static IVehicle newInstanceLimousine(){return new Limousine();}

    public static IVehicle newInstanceTrunk(){return new Trunk();}
}
